package com.sam.thread;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;

@Component
@Slf4j
public class JobRunner2 extends AbstractJobRunner<Integer> {
    @Override
    public String getJobName() {
        return "job2";
    }

    @Override
    public Integer jobRun() throws Exception{
        Integer result = 0;
        Thread.sleep(10000);
        //throw new RuntimeException();
        return result;
    }
}
